﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001051 RID: 4177
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournModuleInfo : IMessage<RogueTournModuleInfo>, IMessage, IEquatable<RogueTournModuleInfo>, IDeepCloneable<RogueTournModuleInfo>, IBufferMessage
	{
		// Token: 0x170034BB RID: 13499
		// (get) Token: 0x0600BA9A RID: 47770 RVA: 0x001F721C File Offset: 0x001F541C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournModuleInfo> Parser
		{
			get
			{
				return RogueTournModuleInfo._parser;
			}
		}

		// Token: 0x170034BC RID: 13500
		// (get) Token: 0x0600BA9B RID: 47771 RVA: 0x001F7223 File Offset: 0x001F5423
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournModuleInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170034BD RID: 13501
		// (get) Token: 0x0600BA9C RID: 47772 RVA: 0x001F7235 File Offset: 0x001F5435
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournModuleInfo.Descriptor;
			}
		}

		// Token: 0x0600BA9D RID: 47773 RVA: 0x001F723C File Offset: 0x001F543C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournModuleInfo()
		{
		}

		// Token: 0x0600BA9E RID: 47774 RVA: 0x001F7244 File Offset: 0x001F5444
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournModuleInfo(RogueTournModuleInfo other) : this()
		{
			this.allowFood_ = other.allowFood_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BA9F RID: 47775 RVA: 0x001F7269 File Offset: 0x001F5469
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournModuleInfo Clone()
		{
			return new RogueTournModuleInfo(this);
		}

		// Token: 0x170034BE RID: 13502
		// (get) Token: 0x0600BAA0 RID: 47776 RVA: 0x001F7271 File Offset: 0x001F5471
		// (set) Token: 0x0600BAA1 RID: 47777 RVA: 0x001F7279 File Offset: 0x001F5479
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool AllowFood
		{
			get
			{
				return this.allowFood_;
			}
			set
			{
				this.allowFood_ = value;
			}
		}

		// Token: 0x0600BAA2 RID: 47778 RVA: 0x001F7282 File Offset: 0x001F5482
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournModuleInfo);
		}

		// Token: 0x0600BAA3 RID: 47779 RVA: 0x001F7290 File Offset: 0x001F5490
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournModuleInfo other)
		{
			return other != null && (other == this || (this.AllowFood == other.AllowFood && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BAA4 RID: 47780 RVA: 0x001F72C0 File Offset: 0x001F54C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AllowFood)
			{
				num ^= this.AllowFood.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BAA5 RID: 47781 RVA: 0x001F72FF File Offset: 0x001F54FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BAA6 RID: 47782 RVA: 0x001F7307 File Offset: 0x001F5507
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BAA7 RID: 47783 RVA: 0x001F7310 File Offset: 0x001F5510
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AllowFood)
			{
				output.WriteRawTag(80);
				output.WriteBool(this.AllowFood);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BAA8 RID: 47784 RVA: 0x001F7344 File Offset: 0x001F5544
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AllowFood)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BAA9 RID: 47785 RVA: 0x001F7376 File Offset: 0x001F5576
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournModuleInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AllowFood)
			{
				this.AllowFood = other.AllowFood;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BAAA RID: 47786 RVA: 0x001F73A7 File Offset: 0x001F55A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BAAB RID: 47787 RVA: 0x001F73B0 File Offset: 0x001F55B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.AllowFood = input.ReadBool();
				}
			}
		}

		// Token: 0x04004B3A RID: 19258
		private static readonly MessageParser<RogueTournModuleInfo> _parser = new MessageParser<RogueTournModuleInfo>(() => new RogueTournModuleInfo());

		// Token: 0x04004B3B RID: 19259
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004B3C RID: 19260
		public const int AllowFoodFieldNumber = 10;

		// Token: 0x04004B3D RID: 19261
		private bool allowFood_;
	}
}
